package com.seafwg.springboot01.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//@ResponseBody
//@Controller

@RestController //两者的简写
public class HelloController {

    @RequestMapping("/hello")
    public String handle01() {
        return "hello spring boot 2...";
    }
}
